?><?

function install(){
	if(!file_exists("grape/installed")||(filemtime("grape/installed")<filemtime("install.php"))){
		$resource=new cls_control_resource();
		$resource->data();
		foreach($resource->items as $key=>$item){
			PutFileContent($key,base64_decode($item));
		}
		include_once("packages.php");
		PutFileContent("grape/installed","resource install complite.");
	}
}